<template>
    <div>
<!--        父子组件通信，子组件里定义属性props ，属性类型定位object，
   props: {
            parnentData: {
                type: Object,
                required: true
            }
        }
        父亲组件里 调用子组件时将父亲的属性传递给子组件
        -->
        <simgle-item v-for="(item) in list"
                    :key="item.id"
        :parnent-data="item"></simgle-item>
    </div>
</template>

<script>

    import SimgleItem from "@/components/SimgleItem";

    export default {
        components: {SimgleItem},
        data: function () {
            return {
                list: [{title: '测试单选A', value: "A", check: null, name: "ques1"},
                    {title: '测试单选B', value: "B", check: null, name: "ques1"},
                    {title: '测试单选C', value: "C", check: null, name: "ques1"},
                    {title: '测试单选D', value: "D", check: null, name: "ques1"},
                ]
            }
        },
    }

</script>